home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 707 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.7 KB

  1. From: mfinney@inmind.com
  2. Message-ID: <4i7qjr$gr7@mujibur.inmind.com>
  3. X-Original-Date: 14 Mar 1996 00:52:11 GMT
  4. Path: in2.uu.net!bounce-back
  5. Date: 13 Mar 96 23:53:07 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Newsgroups: comp.std.c++
  8. Subject: Re: Anyone considered inheritable friendship?
  9. Organization: In Mind, Inc.
  10. References: <4fnrfr$7b1@engnews1.Eng.Sun.COM> <AFwV3Hn027@qsar.chem.msu.su>
  11. Reply-To: mfinney@inmind.com
  12. X-Newsreader: IBM NewsReader/2 v1.2
  13. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  14.     iQBFAgUBMUdf++EDnX0m9pzZAQHndwF+LE4U60eT0p0yFtQ8FLi40MJZzscE2hnU
  15.     xtRMQdH8nERv3ZoMOhWJHo68S4dQdz7i
  16.     =xjjC
  17.  
  18. In <AFwV3Hn027@qsar.chem.msu.su>, "Eugene Radchenko" <eugene@qsar.chem.msu.su>
  19. writes:
  20. >But it is not. Inheritable friendship is a natural extension of normal
  21. >friendship (for tightly coupled classes) to tightly coupled hierarchies.
  22.  
  23. Exactly.  And, not only have I considered, I have begged for it
  24. on bended knee.  I frequently encounter the tightly coupled
  25. hierarchy situation and it would REALLY make my life easier
  26. and my code cleaner.
  27.  
  28. I suggested once that the keyword "friends" should indicate that
  29. the friendship could be inherited and "friend" would indicate
  30. that it is non-inheritable.  And it is NOT the same thing as making
  31. the attributes public.  It is the same thing as making them
  32. protected in another hierarchy.
  33.  
  34.  
  35. Michael Lee Finney
  36. ---
  37. [ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
  38. [ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
  39. [ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
  40. [ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
  41. [ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
  42.